package com.common.comm;

/* *
 * @Author zhanghaiwen
 * @Description 响应格式enum
 * @Date 14:38 2020/1/9
 * @Param
 * @Version 6.1.1
 * @return
 */
public enum ResultEnum implements ResultEnumInterface {
    SUCCESS(200,"成功"),
    PARAM_NULL(406,"请求参数不能为空")
    ;

    private Integer code;

    private String msg;


    ResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
